package com.smart.controller;


import com.smart.entity.Result;
import com.smart.service.IMonitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 监控表 前端控制器
 * </p>
 *
 * @author Cookies
 * @since 2024-05-19
 */
@RestController
@CrossOrigin
@RequestMapping("/monitor")
@Api(tags = "监控相关接口")
public class MonitorController {
    @Autowired
    private IMonitorService monitorService;

    @GetMapping
    @ApiOperation(value = "获取监控列表", response = Result.class)
    public Result getMonitorList() {
        return Result.success(monitorService.getMonitorList());
    }
}
